/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: Universidad de La Frontera
 * License Type: Academic
 */
package orm.tallerdesoa;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tcp_personaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression pers_id;
	public final StringExpression pers_rut;
	public final StringExpression pers_dverificador;
	public final StringExpression pers_nombre;
	public final StringExpression pers_sexo;
	
	public Tcp_personaDetachedCriteria() {
		super(orm.tallerdesoa.Tcp_persona.class, orm.tallerdesoa.Tcp_personaCriteria.class);
		pers_id = new IntegerExpression("pers_id", this.getDetachedCriteria());
		pers_rut = new StringExpression("pers_rut", this.getDetachedCriteria());
		pers_dverificador = new StringExpression("pers_dverificador", this.getDetachedCriteria());
		pers_nombre = new StringExpression("pers_nombre", this.getDetachedCriteria());
		pers_sexo = new StringExpression("pers_sexo", this.getDetachedCriteria());
	}
	
	public Tcp_personaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.tallerdesoa.Tcp_personaCriteria.class);
		pers_id = new IntegerExpression("pers_id", this.getDetachedCriteria());
		pers_rut = new StringExpression("pers_rut", this.getDetachedCriteria());
		pers_dverificador = new StringExpression("pers_dverificador", this.getDetachedCriteria());
		pers_nombre = new StringExpression("pers_nombre", this.getDetachedCriteria());
		pers_sexo = new StringExpression("pers_sexo", this.getDetachedCriteria());
	}
	
	public Tcp_publicacionDetachedCriteria createTcp_publicacionCriteria() {
		return new Tcp_publicacionDetachedCriteria(createCriteria("ORM_Tcp_publicacion"));
	}
	
	public Tcp_persona uniqueTcp_persona(PersistentSession session) {
		return (Tcp_persona) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tcp_persona[] listTcp_persona(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tcp_persona[]) list.toArray(new Tcp_persona[list.size()]);
	}
}

